#import <UIKit/UIKit.h>
#import "M80AttributedLabel.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,alertType)
{
    alertTypeBeInvited = 10086,
    alertTypeContact   = 10087, 
};
@interface TJAlertViewAction : NSObject
+ (instancetype)actionWithTitle:(nullable NSString *)title titleColor:(UIColor *)color handler:(void (^ __nullable)(TJAlertViewAction *action))handler;
+ (instancetype)actionWithTitle:(nullable NSString *)title
                     titleColor:(UIColor *)color
                 backGroudColor:(UIColor *)bgColor
                        handler:(void (^ __nullable)(TJAlertViewAction *action))handler;
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_BEGIN
@interface TJAlertView : UIView
@property(strong, nonatomic) UILabel *mTitleLabel;
@property(strong, nonatomic) M80AttributedLabel *mSubLabel;
@property(strong, nonatomic) UIView *mBgView;
+ (instancetype)alertWithTitle:(NSString * __nullable)title subTitle:(NSString * __nullable)subTitle;
+ (instancetype)alertWithTitle:(NSString * __nullable)title subTitle:(NSString * __nullable)subTitle clickTitle:(NSString *)clickTitle clickSecond:(NSString *)clickSecond click:(void(^)(NSString *title))click;
+ (instancetype)alertWithAttributedTitle:(NSAttributedString *)title attributedSubTitle:(NSAttributedString *)subTitle;
- (void)showCloseButton;
- (void)doAddAction:(TJAlertViewAction *)action;
- (void)doShowAlertView;
- (void)doShowAlertToCurrentView;
- (void)doShowAlertToSuperView:(UIView *)aSuperView;
- (void)doDismissAlertView;
+ (void)doDismissAlertView;
+ (void)show4GPlayingAlertWithSuperview:(UIView *)superview;
+ (void)showLeaveAlert:(void (^)(void))complete;
+ (void)showMeKnowAlertWithDict:(id)dict;
+ (void)showDrainageAlertWithDict:(id)dict;
+ (void)showMaxDrainageAlertWithCount:(NSInteger)count delCount:(NSUInteger)delCount;
@end
@interface TJActionSheetView : UIView
@property(copy,nonatomic)void (^btnClickBlock)(NSInteger tag, NSString *title);
@property(copy,nonatomic)void (^closedBlock)(void);
@property(strong, nonatomic) UIColor *mMaskViewColor;
- (void)showWithSources:(NSArray<NSString *> *)titles;
- (void)showWithSources:(NSArray<NSString *> *)titles color:(UIColor *)titleColor;
- (void)doRefreshCancelWithTitle:(NSString *)title;
@end
NS_ASSUME_NONNULL_END
